cmake_minimum_required(VERSION 3.16)
project(Client C)

set(CMAKE_C_STANDARD 11)

# 查找 OpenSSL 库
find_package(OpenSSL REQUIRED)

# 包含 OpenSSL 头文件
include_directories(${OPENSSL_INCLUDE_DIR})

include_directories(.)
aux_source_directory(. SC_SRC)
aux_source_directory(../utils UA_SRC)

add_executable(Client client.c ${SC_SRC} ${UA_SRC})

target_link_libraries(Client PRIVATE pthread mysqlclient crypt ${OPENSSL_LIBRARIES} OpenSSL::Crypto)
